package com.hellobike.haxing.modules.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hellobike.haxing.common.vo.Result;
import com.hellobike.haxing.modules.product.entity.Spu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hellobike.haxing.modules.product.exception.ProductException;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @Description: SPU
 * @Author: haxing-boot
 * @Date:   2020-01-10
 * @Version: V1.0
 */
public interface ISpuService extends IService<Spu> {


    IPage<Spu> page(Page<Spu> page, QueryWrapper<Spu> queryWrapper);

    Spu getSpuDetail(Long id);

    void saveSpu(Spu spu) throws ProductException;

    void updateSpu(Spu spu) throws ProductException;

    void importSpus(MultipartFile file) throws ProductException, IOException;
}
